//
//  GPBaseNavigationController.m
//  gupiao
//
//  Created by mac on 2019/8/14.
//  Copyright © 2019 mac. All rights reserved.
//

#import "GPBaseNavigationController_NN.h"

@interface GPBaseNavigationController_NN ()

@end

@implementation GPBaseNavigationController_NN

- (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationBar.translucent = NO;
    [self.navigationBar setTitleTextAttributes:
     @{NSFontAttributeName:DEFAULT_MEDIUMFONT(17),
       NSForegroundColorAttributeName:[UIColor whiteColor]}];
//    [self.navigationBar setBackgroundImage:[UIImage new] forBarMetrics:UIBarMetricsDefault];
    [self.navigationBar setBarTintColor:DEFAULT_THEMECOLOR];
}

-(UIViewController *)childViewControllerForStatusBarStyle{
    return self.topViewController;
}

-(UIViewController *)childViewControllerForStatusBarHidden{
    return self.topViewController;
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
